package com.first;

import java.util.Scanner;

public class 三个数比较大小 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入第一个整数");
        int i = sc.nextInt();

        System.out.println("请输入第二个整数");
        int k = sc.nextInt();

        System.out.println("请输入第三个整数");
        int l = sc.nextInt();

        int temp;

        if (i>k){
            temp = i;
        }else {
            temp = k;
        }

        if (l>temp){
            temp = l;
        }

        System.out.println("最大值是"+temp);

    }
}
